package com.iu.eblood.daoImpl;

import java.io.Serializable;

import org.springframework.stereotype.Repository;
import com.iu.eblood.dao.GenericDao;
import com.iu.eblood.daoInterfaces.RoleDao;
import com.iu.eblood.model.Category;
import com.iu.eblood.model.Role;

@Repository("RoleDaoImpl")
public class RoleDaoImpl
extends GenericDao<Role, Long> implements RoleDao{

	public RoleDaoImpl() {
		super(Role.class);
	}
	
	public Category cat()
	{
		 
		return (Category)this.getHibernateTemplate().getSessionFactory().
		getCurrentSession().get(Category.class,2);
	}
	
	
}
